package yx.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

/**
 * BsFamily entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "bs_family", catalog = "")
public class BsFamily implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer studentId;
	private String name;
	private String relationship;
	private String gender;
	private Date birthday;
	private String belief;
	private String health;
	private String memo;

	// Constructors

	/** default constructor */
	public BsFamily() {
	}

	/** full constructor */
	public BsFamily(Integer studentId, String name, String relationship, String gender, Date birthday, String belief, String health, String memo) {
		this.studentId = studentId;
		this.name = name;
		this.relationship = relationship;
		this.gender = gender;
		this.birthday = birthday;
		this.belief = belief;
		this.health = health;
		this.memo = memo;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "STUDENT_ID")
	public Integer getStudentId() {
		return this.studentId;
	}

	public void setStudentId(Integer studentId) {
		this.studentId = studentId;
	}

	@Column(name = "NAME", length = 32)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "RELATIONSHIP", length = 2)
	public String getRelationship() {
		return this.relationship;
	}

	public void setRelationship(String relationship) {
		this.relationship = relationship;
	}

	@Column(name = "GENDER", length = 1)
	public String getGender() {
		return this.gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "BIRTHDAY", length = 10)
	public Date getBirthday() {
		return this.birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	@Column(name = "BELIEF", length = 32)
	public String getBelief() {
		return this.belief;
	}

	public void setBelief(String belief) {
		this.belief = belief;
	}

	@Column(name = "HEALTH")
	public String getHealth() {
		return this.health;
	}

	public void setHealth(String health) {
		this.health = health;
	}

	@Column(name = "MEMO")
	public String getMemo() {
		return this.memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

}